package com.zer0.tga.ui;

import com.zer0.tga.Game;
import com.zer0.tga.art.Screen;

public class OptionsMenu extends ListMenu{

	public OptionsMenu() {

	}

	public void render(Screen screen)
	{
		
		//render the image with currentSelection highlighted
	//	screen.draw(ArtArchive.optionsMenu[0][0], 0, 0);
		for(int i=0;i<=maxSelection;i++)
		{
			/*if(i!=currentSelection)
				screen.draw(ArtArchive.startMenuButtons[0][i],620,400+i*50);
			else
				screen.draw(ArtArchive.startMenuButtons[1][i],620,400+i*50);*/
		}
	}
	public void tick()
	{
		super.tick();
		
		if(Game.getInstance().input.right.wasReleased())
			handleSelection(true);
		if(Game.getInstance().input.left.wasReleased())
			handleSelection(false);
	}
	
	public void handleSelection()
	{
		handleSelection(true);
	}
	
	public void handleSelection(boolean toNext)
	{
		switch(currentSelection)
		{
		case 0: // Start Game
			Game.getInstance().startGame();
			break;

		}
	}
	
	
	
	
}
